package edu.zut.cs.software.example.teach.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.example.base.domain.BaseEntity;

@Entity
@Table(name = "T_STUDENT")
public class Student extends BaseEntity<Long>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * Student ID Code
	 */
	@Column
	String code;
	/**
	 * full name
	 */
	@Column
	String name;
	/**
	 * male or female
	 */
	@Column
	Gender gender;
	/**
	 * student's major belongs to
	 */
	@Column
	String department;
	/**
	 * the major that student chooses
	 */
	@Column
	String major;
	/**
	 * student's grade
	 */
	@Column
	String grade;
	/**
	 * address for this student
	 */
	@Column
	String address;
	/**
	 * student's telephone number
	 */
	@Column
	String tel;
	/**
	 * student's email
	 */
	@Column
	String email;
	
	@ManyToOne
	@JoinColumn(name = "Clase_ID")
	Clase clase;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Clase getClase() {
		return clase;
	}

	public void setClase(Clase clase) {
		this.clase = clase;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	

}
